<?php
/*
 * @component AlphaGetCouponCode
 * @copyright Copyright (C) 2008-2009 Bernard Gilly
 * @license : GNU/GPL
 * @Website : http://www.alphaplug.com
 */


// no direct access
defined('_JEXEC') or die('Restricted access');

// Import file dependencies
require_once (JPATH_COMPONENT.DS.'helpers'.DS.'helpers.php');

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

// Create the controller
$controller = new AlphagetcouponcodeController();

// Perform the Request task
$task = JRequest::getVar('task', null, 'default', 'cmd');

if ( $task ) {
	$controller->execute( $task );
} else $controller->execute(JRequest::getVar('view', null, 'default', 'cmd'));

// Redirect if set by the controller
$controller->redirect();

?>